<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>登录</title>
    <link rel="stylesheet" href="/WebYiZhi/Template/Home/Css/bootstrap.css"/>
<link rel="stylesheet" href="/WebYiZhi/Template/Home/Css/icheck.css"/>
<script src="/WebYiZhi/Template/Home/Js/jquery-2.1.1.js"></script>
<script src="/WebYiZhi/Template/Home/Js/bootstrap.js"></script>
<script type="text/javascript" src="/WebYiZhi/Public/Framework/hui/lib/jquery.form/3.46.0/jquery.form.js"></script>
<!--[if IE 6]>
<script type="text/javascript" src="lib/DD_belatedPNG_0.0.8a-min.js"></script>
<script>DD_belatedPNG.fix('.pngfix,.icon');</script>
<![endif]-->
<!--[if lt IE 9]>
<script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>

<![endif]-->
<script src="/WebYiZhi/Public/layer/layer.js"></script>
<!--自己的css-->
<link rel="stylesheet" href="/WebYiZhi/Template/Home/Css/login.css"/>
<link rel="stylesheet" href="/WebYiZhi/Template/Home/Css/style.css"/>
<script src="/WebYiZhi/Template/Home/Js/message.js"></script>
<script type="text/javascript" src="/WebYiZhi/Template/Home/Js/Validform_v5.3.2_min.js"></script>
<link rel="stylesheet" href="/WebYiZhi/Template/Home/Css/index.css"/>
<script src="/WebYiZhi/Template/Home/Js/Chart.js"></script>
<script src="/WebYiZhi/Template/Home/Js/Chart-1.0.1-beta.4.js"></script>
<script src="/WebYiZhi/Template/Home/Js/index.js"></script>
<script type="text/javascript" src="/WebYiZhi/Public/Framework/hui/lib/My97DatePicker/WdatePicker.js"></script>

</head>
<body>
<!--顶部开始-->
<header class="header">
    <div class="header_box">
        <div class="header_cont">
            <div class="head_l lt">您好！欢迎来到移植网</div>
            <div class="head_r rt"><a href="<?php echo U(login);?>">登录</a><a href="<?php echo U(register);?>">注册</a></div>
        </div>
    </div>
    <div class="header_logo">
        <div class="lt">
            <a href=""><img src="/WebYiZhi/Template/Home/Img/LOGO.png" alt=""/></a>
            <span>移植助手</span>
        </div>
        <div class="rt">
            <ul>
                <li>没有账号？<a href="<?php echo U(register);?>">立即注册</a><span>|</span></li>
                <li>忘记密码？<a href="<?php echo U(pwd);?>">立即找回</a></li>
                <li class="btn_index"><a href="<?php echo U(index);?>">返回介绍页</a></li>
            </ul>
        </div>
    </div>
</header>
<!--顶部结束-->
<!--主体内容开始-->
<div class="zc_main">
    <div class="lt">
        <img src="/WebYiZhi/Template/Home/Img/003.jpg" alt=""/>
    </div>
    <div class="rt">
        <form  class="form form-horizontal va-m Validform" id="demoform-1">
            <div class="form-group">
                <label class="form-label col-xs-4 col-sm-3">用户名</label>
                <div class="formControls col-xs-7 col-sm-8">
                    <input type="text" class="form-control"  name="phone" placeholder="请输入手机号码" value="">
                </div>
            </div>
            <div class="form-group">
                <label class="form-label col-xs-4 col-sm-3">密码：</label>
                <div class="formControls col-xs-8 col-sm-9">
                    <input type="password" class="form-control" autocomplete="off" name="passwd" placeholder="请输入密码">
                </div>
            </div>
            <div class="form-group">
                <label class="form-label  col-xs-4">验证码：</label>
                <div class="col-xs-4">
                    <input type="text" name="code" class="form-control" autocomplete="off" placeholder="请输入验证码">
                </div>
                <div class="col-xs-4">
                    <img src="<?php echo U('verify');?>" class="verify"  id="verify" onclick="changeYzm(this)" style="margin-left: -15px;margin-top: -5px">
                </div>
            </div>
            <div class="row">
                <label class="form-label col-xs-4 col-sm-3"></label>
                <div class="formControls skin-minimal col-xs-8 col-sm-9">
                    <div class="checkbox">
                        <label><input type="checkbox">记住密码</label>
                        <a href="<?php echo U('pwd');?>" style=" text-decoration: none;">忘记密码？</a>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
                    <input class="btn btn-default" type="button" onclick="logins()" value="登录">
                </div>
            </div>
            <div class="row">
                <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3 tishi">
                    没有账号？<a href="<?php echo U(register);?>" style=" text-decoration: none;">免费注册</a>
                </div>
            </div>
        </form>
    </div>
</div>
<!--主体内容结束-->
<!--尾部开始-->
<div class="footer">
    <div class="footer_cont">
        <p>Copyright © 2008-2014 Change360.cn All Rights Reserved  陕西类星体信息科技有限公司</p>
        <p> 地址：陕西省西安市高新区高新一路正信大厦A座204室</p>
    </div>
</div>

<!--尾部结束-->
</body>
<script>

    function logins() {
        $.ajax({
            url:"<?php echo U('DoctorInfo/login');?>",
            data:$("#demoform-1").serialize(),
            type:"Post",
            dataType:"json",
            success:function (data) {
                if(data.status==1){
                    layer.msg(data.msg,{icon:6,time: 1000},function(){
                        window.location.href="<?php echo U('DoctorInfo/index',array('genre'=>1));?>";
                    });
                }else{
                    layer.msg(data.msg,{time: 1000},function () {
                       $('#verify').src="<?php echo U('verify');?>";
                    });
                }
            },
            error:function (err) {
                layer.msg('登陆失败，请刷新页面尝试再一次登录');
            }
        })
    }
    function changeYzm(obj){
        var rand = parseInt(Math.random()*5);
        //  var url = "<?php echo U('verify');?>"+"?rand="+rand;
        var url="<?php echo U('verify');?>"+"?rand="+rand;
        obj.src = url;
    }
</script>
</html>